from fastapi import APIRouter 
from sql_app.database import SessionLocal
import sql_app.models as models
router = APIRouter()


@router.get("/get/{user_id}")
async def read_root(user_id: int):
    return SessionLocal().query(models.User).filter(models.User.id == user_id).first()